-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure firstOrNew/Create can be called without parameters in Laravel 8+ #157
Conversation
I think we need to create separate stubs for separate laravel versions? It seems like laravel 7 introduced the ability for We should probably take a similar approach as the symfony plugin: https://github.com/psalm/psalm-plugin-symfony/tree/master/src/Stubs |
A test would be nice as that would verify the issue I'm bringing up, I believe |
It's a bit inconsistent:
|
I guess the test would need to have different expectations depending on the Laravel version? edit: I'm not familiar with behat, but we probably need a condition that restricts a test to a Laravel version, like |
Implemented in 7f9994d. |
@mr-feek Any tips how to add test scenarios that only run with a specific Laravel major version, and that are skipped otherwise? I only found some unconditional |
I think it might need a custom codeception module helper... @weirdan implemented this for determining the version of |
Custom step is not required. You can check the version of any package, see release notes for v0.9.0 |
One step ahead of us :) thanks @weirdan ! |
thanks! |
Fixes #156.
🟢
Includes 🍒 from #181.Blocked by #182.